from DataManagement.models import CodeModel
from django.db import models


class Dwbmdm(CodeModel):
    value = models.CharField(primary_key=True, max_length=10, verbose_name='标准单位部门代码')
    label = models.CharField(max_length=128, blank=True, null=True, verbose_name='标准单位部门注释')
    label_en = models.CharField(max_length=128, blank=True, null=True, verbose_name='标准单位部门英文名称')
    parent_id = models.CharField(max_length=5, blank=True, null=True, verbose_name='标准单位部门父ID')
    value1 = models.CharField(max_length=10, blank=True, null=True, verbose_name='研究生教务信息平台院系代码')
    label1 = models.CharField(max_length=255, blank=True, null=True, verbose_name='研究生教务信息平台院系注释')
    newcode = models.CharField(max_length=512, blank=True, null=True, verbose_name='新数据中心部门代码')
    newname = models.CharField(max_length=255, blank=True, null=True, verbose_name='新数据中心部门名称')
    value2 = models.CharField(max_length=10, blank=True, null=True, verbose_name='基建项目管理系统部门代码')
    label2 = models.CharField(max_length=255, blank=True, null=True, verbose_name='基建项目管理系统部门注释')
    value3 = models.CharField(max_length=10, blank=True, null=True, verbose_name='智能门禁系统管理平台部门代码')
    label3 = models.CharField(max_length=255, blank=True, null=True, verbose_name='智能门禁系统管理平台部门注释')
    value4 = models.CharField(max_length=10, blank=True, null=True, verbose_name='教务系统院系部处代码')
    label4 = models.CharField(max_length=255, blank=True, null=True, verbose_name='教务系统院系部处注释')
    value5 = models.CharField(max_length=128, blank=True, null=True, verbose_name='人事系统部门代码')
    label5 = models.CharField(max_length=128, blank=True, null=True, verbose_name='人事系统部门注释')
    label5_2 = models.CharField(max_length=128, blank=True, null=True, verbose_name='人事处数据统计表部门名称')
    label5_3 = models.CharField(max_length=128, blank=True, null=True, verbose_name='人事处退休名单表部门名称')
    value6 = models.CharField(max_length=255, blank=True, null=True, verbose_name='中央认证系统部门代码')
    label6 = models.CharField(max_length=800, blank=True, null=True, verbose_name='中央认证系统部门名称')
    value7 = models.CharField(max_length=512, blank=True, null=True, verbose_name='OA系统部门代码')
    label7 = models.CharField(max_length=255, blank=True, null=True, verbose_name='OA系统部门名称')
    label8 = models.CharField(max_length=255, blank=True, null=True, verbose_name='员工信息登记表部门名称')
    value9 = models.CharField(max_length=512, blank=True, null=True, verbose_name='旧数据中心部门代码')
    label9 = models.CharField(max_length=255, blank=True, null=True, verbose_name='旧数据中心部门名称')
    remarks = models.CharField(max_length=255, blank=True, null=True, verbose_name='备注')
    create_by = models.CharField(max_length=64, blank=True, null=True, verbose_name='创建人')
    create_date = models.CharField(max_length=14, blank=True, null=True, verbose_name='创建时间')
    update_by = models.CharField(max_length=64, blank=True, null=True, verbose_name='更新人')
    update_date = models.CharField(max_length=14, blank=True, null=True, verbose_name='更新时间')
    del_flag = models.IntegerField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'dwbmdm'
        verbose_name = '单位部门代码表'
        verbose_name_plural = '单位部门代码表'
